<?php

function view_header_up($config, $param) {
    ?>
<!doctype html>
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" itemscope itemtype="http://schema.org/Product"> <!--<![endif]-->
<html>
	<head>
		<meta charset="UTF-8">
		<!--meta name="description" content="" />
		<meta name="keywords" content="" />
		<meta name="author" content="humans.txt"-->
		<!--link rel="shortcut icon" href="favicon.png" type="image/x-icon" /-->
		<!-- Facebook Metadata /-->
			<!--meta property="fb:page_id" content="" />
			<meta property="og:image" content="" />
			<meta property="og:description" content=""/>
			<meta property="og:title" content=""/-->
		<link rel="stylesheet" href="<? echo $config['css_url']; ?>gumby.css">
		<link rel="stylesheet" href="<? echo $config['css_url']; ?>style.css">
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
		<script>window.jQuery || document.write('<script src="<? echo $config['js_url']; ?>libs/jquery-1.8.3.min.js"><\/script>')</script>
		<script src="<? echo $config['js_url']; ?>libs/modernizr-2.6.2.min.js"></script>
		<script src="<? echo $config['js_url']; ?>libs/gumby.min.js"></script>
		<script src="<? echo $config['js_url']; ?>plugins.js"></script>
		<script src="<? echo $config['js_url']; ?>main.js"></script>
    <?
}

function view_header_bottom($config, $param) {
	?>
	</head>
	<body>
		<div class="container">
			<div class="row">
				<div class="three columns">
					<?php
						if (isset($_SESSION['logged'])){
					?>
					<h2>Menu</h2>
					<ul>
						<li><a href="<? echo $config['home_url'].'agenda'; ?>">Agenda</a></li>
						<li><a href="<? echo $config['home_url'].'produksi/embozz'; ?>">Produksi Embozz</a></li>
						<li><a href="<? echo $config['home_url'].'pelanggan'; ?>">Daftar Pelanggan</a></li>
						<li><a href="<? echo $config['home_url'].'mading'; ?>">Papan Mading</a></li>
						<li><a href="<? echo $config['home_url'].'sms'; ?>">SMS Idebeda</a></li>
						<li><a href="<? echo $config['home_url'].'profil'; ?>">Profil</a></li>
						<li><a href="<? echo $config['home_url'].'info/twembozz'; ?>">FAQ</a></li>
						<li><a href="<? echo $config['home_url'].'logout'; ?>">Log Out (<? echo $_SESSION['logged']['uname']; ?>)</a></li>
					</ul>
					<?php
						}
					?>
				</div>
				<div class="nine columns">
				
	<?
}

function view_header_bottom2($config, $param) {
	?>
	</head>
	<body>
		<div class="container">
			<div class="row">
				<div class="three columns">
					<?php
						if (isset($_SESSION['logged'])){
					?>
					<h2>Menu FAQ</h2>
					<ul>
						<li><a href="<? echo $config['home_url']; ?>">Menu Utama</a></li>
						<li><a href="<? echo $config['home_url'].'info/twembozz'; ?>">Twitter Embozz</a></li>
						<li><a href="<? echo $config['home_url'].'info/agenda'; ?>">Agenda</a></li>
						<li><a href="<? echo $config['home_url'].'info/mading'; ?>">Mading</a></li>
						<li><a href="<? echo $config['home_url'].'info/sms'; ?>">SMS</a></li>
						<li><a href="<? echo $config['home_url'].'logout'; ?>">Log Out (<? echo $_SESSION['logged']['uname']; ?>)</a></li>
					</ul>
					<?php
						}
					?>
				</div>
				<div class="nine columns">
				
	<?
}

function view_footer($config, $param) { // home dll
    ?>                
				</div> <!-- 10-col -->
			</div> <!-- main-row -->
		</div> <!-- container -->
	<script type="text/javascript">
		function mintajax() {
			var xmlHttpObj;
			if (window.XMLHttpRequest) {
				xmlHttpObj = new XMLHttpRequest( );
			} else {
				try {
				xmlHttpObj = new ActiveXObject("Msxml2.XMLHTTP");
				} catch (e) {
					try {
						xmlHttpObj = new ActiveXObject("Microsoft.XMLHTTP");
					} catch (e) {
						xmlHttpObj = false;
					}
				}
			}
			return xmlHttpObj;
		}
	</script>
	</body>   
</html>     
    <?
}
